<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>审核</title>
	<link rel="stylesheet" href="css/reset.css">
	<link rel="stylesheet" href="css/product.css">
	<link rel="stylesheet" href="css/select-big.css">
	<style>
		.content-btn {
		    margin: 0 45px;
		}
		.content-table-two {
		    margin-left: 5%;
		    width: 90%;
		}
		.content-table-two tbody tr td input{
			width: 80%;
			height: 30px;
			line-height: 30px;
			background: #F9FBFF;
			border: 1px solid #ecf2f7;
			border-radius: 15px;
			text-align: center;
		}
		.icon-delImg{
			display: inline-block;
		    background: url(images/close-1.png)no-repeat;
		    width: 25px;
		    height: 25px;
		    cursor: pointer;
		}
		.icon-delImg:hover{
			background: url(images/close-1.png)no-repeat 0 -27px;
		}
		.divLeft {
		    float: right;
		    width: auto;
		    display: inline-block;
		    margin-top: -35px;
		    margin-right: 45px;
		}
		.content-table-newservice {
		    width: 88%;
		    margin: 10px auto;
		}
		.content-table-newservice tbody tr td:nth-child(odd){
			width: 89px;
		}
		.content-table-newservice tbody tr td{
			border-bottom:1px solid #f5f5f5;
		}
		.content-table-newservice tbody tr:last-child td{
			border-bottom:0px solid #f5f5f5;
		}
		.content-table-newservice tbody tr td p{
			display: inline-block;
		    width: 640px;
		    min-height: 30px;
		    margin-top: 15px;
		    word-wrap: break-word;
		    line-height: 20px;
		}
		.content-table-newservice tbody tr td input {
		    width: 14px;
		    height: 14px;
		    margin-bottom: 0px;
		    padding-left: 10px;
		    margin-right: 5px;
		    vertical-align: middle;
		}
		.content-table-newservice:last-child tbody tr td{
			border-bottom:0px solid #f5f5f5;
		}
		.content-table-newservice tbody tr td textarea {
		    margin-top: 5px;
		}
	</style>
</head>
<body style="background:#fff;">
<div class="main-content-box">
	<div class="content-list">
	<form dataHref="/contractDetail/setAuditData">
	  <input  id="opid" name="id" type="hidden">
		<table class="content-table-newservice" cellspacing="0" cellpadding="0">
			<tbody>
				<tr>
					<td>审核人：</td>
					<td><span>苏童</span></td>
				</tr>
				<tr>
					<td><font color="red">*</font>审核状态：</td>
					<td>
						<input name="confirtrackstatus" type="radio" checked="true" value="3"><label>审核通过</label>
						<input name="confirtrackstatus" type="radio"  value="4"><label>审核拒绝</label>
					</td>
				</tr>
				<tr>
					<td><font id="isshow" color="red" style="display: none">*</font>拒绝说明：</td>
					<td><textarea name="reason" id="reason" cols="30" rows="3"></textarea></td>
				</tr>
				<tr>
					<td></td>
					<td><button class="save-btn" type="submit">确认</button></td>
				</tr>
			</tbody>
		</table>
		</form>
	</div>
</div>
    <script src="js/jquery-3.2.1.min.js"></script>
	<script src="js/jquery-validation/1.11.0/jquery.validate.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
	<script type="text/javascript" src = "js/util.js"></script>
	<script type="text/javascript" src = "js/submit.js"></script>
	<script type="text/javascript" src = "js/validate.js"></script>
	<script type="text/javascript">
	var bo = true;
	$(document).ready(function(){
		var baseInfo = parent.getData();	
		$('#opid').val(baseInfo);
		$("input[type='radio']").click(function(){
			 if ($(this).is(':checked')) {
                 if($(this).val() == 4){
                	 $('#isshow').show();
                	 bo = false;
                 }
                 else{
                	 $('#isshow').hide();
                	 bo = true;
                 }
             }
		})
    })
    function validateCallback(){
		var a = $("input[type='radio']:checked").val();
		if(a ==4){
			if(jQuery.trim($('#reason').val()) ==''){
				bo =false;
				layer.msg("拒绝说明不能为空");
			}
			 else{
            	 bo = true;
             }
		}
		else{
			 bo = true;
		}
		alert(bo);
		return bo;
	}
	function submitCallback(dt){
		parent.layer.closeAll();
		parent.layer.msg("审核成功!");
	}
	</script>
</body>
</html>